<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 数据表格</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__ACSS_PATH__bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <!-- Data Tables -->
    <link href="__ACSS_PATH__plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="__ACSS_PATH__style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="__ACSS_PATH__amazeui.min.css"/>
    <link rel="stylesheet" href="__ACSS_PATH__admin.css">
    <style type="text/css">
        
        .gohome{
            display: none;
        }
        .guangao input{
            width: 600px;
        }
        .gg{
            margin-left: -330px;
            margin-top:120px;
            color: white;
            background-color:lightblue;
            border: 1px solid lightblue;
        }
        .gg2{
            margin-left: -330px;
            margin-top:120px;
            color: white;
            background-color:lightgreen;
            border: 1px solid lightgreen;
        }
        textarea{
            width: 600px;
            height:100px;
        }
    </style>
    <!-- 全局js -->
    <script src="__AJS_PATH__jquery.min.js?v=2.1.4"></script>
    <script src="__AJS_PATH__bootstrap.min.js?v=3.3.6"></script>
    <script src="__AJS_PATH__plugins/jeditable/jquery.jeditable.js"></script>
    <script src="__AJS_PATH__app.js"></script>
    <script src="__AJS_PATH__amazeui.min.js"></script>
    <!-- Data Tables -->
    <script src="__AJS_PATH__plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__AJS_PATH__plugins/dataTables/dataTables.bootstrap.js"></script>
    <!-- 自定义js -->
    <script src="__AJS_PATH__content.js?v=1.0.0"></script>
</head>

<body class="gray-bg">
    {layout name='public/layout'}
    <div class="admin-biaogelist">
    <div class="wrapper wrapper-content animated fadeInRight" id='tables'>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>管理者列表</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="table_data_tables.html#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a href="table_data_tables.html#">选项1</a>
                                </li>
                                <li><a href="table_data_tables.html#">选项2</a>
                                </li>
                            </ul>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">

                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>广告图片</th>
                                    <th>广告描述</th>
                                    <th>广告URL</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="gradeX">
                                    <td>Trident</td>
                                    <td>Internet Explorer 4.0
                                    </td>
                                    <td>Win 95+</td>
                                    <td class="center">4</td>
                                    <td class="center">X</td>
                                </tr>
                                <tr class="gradeC">
                                    <td>Trident</td>
                                    <td>Internet Explorer 5.0
                                    </td>
                                    <td>Win 95+</td>
                                    <td class="center">5</td>
                                    <td class="center">C</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Trident</td>
                                    <td>Internet Explorer 5.5
                                    </td>
                                    <td>Win 95+</td>
                                    <td class="center">5.5</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Trident</td>
                                    <td>Internet Explorer 6
                                    </td>
                                    <td>Win 98+</td>
                                    <td class="center">6</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Trident</td>
                                    <td>Internet Explorer 7</td>
                                    <td>Win XP SP2+</td>
                                    <td class="center">7</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Trident</td>
                                    <td>AOL browser (AOL desktop)</td>
                                    <td>Win XP</td>
                                    <td class="center">6</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td><img style="background:red;width:100px;height:100px">Firefox 1.0</td>
                                    <td>Win 98+ / OSX.2+</td>
                                    <td class="center">1.7</td>
                                    <td class="center">A
                                           <div class="btn-group">
                                              <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">操作</a>
                
                                              <ul class="dropdown-menu">
                                                <li><a href="#">删除商品</a></li>
                                                <li><a href="#">Delete</a></li>
                                                <li><a href="#">Ban</a></li>
                                                <li><a href="#">Make admin</a></li>
                                              </ul>
                                            </div>
                                    </td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Firefox 1.5</td>
                                    <td>Win 98+ / OSX.2+</td>
                                    <td class="center">1.8</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Firefox 2.0</td>
                                    <td>Win 98+ / OSX.2+</td>
                                    <td class="center">1.8</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Firefox 3.0</td>
                                    <td>Win 2k+ / OSX.3+</td>
                                    <td class="center">1.9</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Camino 1.0</td>
                                    <td>OSX.2+</td>
                                    <td class="center">1.8</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Camino 1.5</td>
                                    <td>OSX.3+</td>
                                    <td class="center">1.8</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Netscape 7.2</td>
                                    <td>Win 95+ / Mac OS 8.6-9.2</td>
                                    <td class="center">1.7</td>
                                    <td class="center">A</td>
                                </tr>
                                <tr class="gradeA">
                                    <td>Gecko</td>
                                    <td>Netscape Browser 8</td>
                                    <td>Win 98SE+</td>
                                    <td class="center">1.7</td>
                                    <td class="center">A</td>
                                </tr>
                                
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
        
    </div>
        <h2 style="margin-left:30px">添加广告</h2>
        <div style="margin-left:100px;width:100%;height:500px" name='guangao'>
            <form>
                 <h4>广告URL</h4>
                <input type="text" name="" placeholder="请输入广告URL">
                <h4>广告图片</h4>
                <input type="file" name="image" >
                <h4>广告描述</h4>
                <textarea>
                    
                </textarea>
                <button class="gg">点击上传</button>
            </form>
        </div>
        <h2 style="margin-left:30px">网站公告</h2>
        <div style="margin-left:100px;width:100%;height:500px">
            <form>
                 <h4>公告标题</h4>
                <input type="text" name="" placeholder="请输入公告标题">
                <h4>公告类容</h4>
                <textarea>
                    
                </textarea>
                <button class='gg2'>点击上传</button>
            </form>
        </div>
    </div>

    <!-- Page-Level Scripts -->
    <script>
        $(document).ready(function () {
            $('.dataTables-example').dataTable();

            /* Init DataTables */
            var oTable = $('#editable').dataTable();

            /* Apply the jEditable handlers to the table */
            oTable.$('td').editable('../example_ajax.php', {
                "callback": function (sValue, y) {
                    var aPos = oTable.fnGetPosition(this);
                    oTable.fnUpdate(sValue, aPos[0], aPos[1]);
                },
                "submitdata": function (value, settings) {
                    return {
                        "row_id": this.parentNode.getAttribute('id'),
                        "column": oTable.fnGetPosition(this)[2]
                    };
                },

                "width": "90%",
                "height": "100%"
            });


        });
        function fnClickAddRow() {
            $('#editable').dataTable().fnAddData([
                "Custom row",
                "New row",
                "New row",
                "New row",
                "New row"]);

        }
    </script>
</body>
</html>
